Conditions | 2 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | /** global: grecaptcha */ |
||
6 | function reCaptchaInit() { |
||
7 | var element = document.createElement('script'), |
||
8 | target = document.querySelectorAll('script')[0], |
||
9 | protocol = 'https:' == document.location.protocol ? 'https' : 'http'; |
||
10 | element.type = 'text/javascript'; |
||
11 | element.src = protocol + '://www.google.com/recaptcha/api.js?onload=reCaptchaOnloadCallback&render=explicit&hl='.concat(window.SS_LOCALE); |
||
12 | target.parentNode.insertBefore(element, target); |
||
13 | } |
||
14 | |||
45 |